<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('bookstore.import')} > ${i18n.getMessage('create_one')}">
	<a href="#" onclick="cc('bookstore/showListOfImport.sgt?id=${(importReceipt.id)!}')">${i18n.getMessage('list')}</a>
</@showTitle>

<div id="error" style="display:none"></div>

<form action="bookstore/createImport.sgt" validator="bookstore/validateImport.sgt" onsubmit="submitFormValidation(this); return false;" onreset="$('error').hide()">
	<table id="dataTable" cellspacing="5" cellpadding="0" align="center">
		<tr>
			<td class="name"><@required/>${i18n.getMessage('bookstore.import.id')}:</td>
			<td><input type="text" name="number" style="width:200px"/></td>
		</tr>
		<tr>
			<td class="name">${i18n.getMessage('bookstore.import.date')}:</td>
			<td>
				<input type="text" name="date" style="width:200px"/><img class="calendarImg" src="images/calendar/calendar.gif" onclick="displayCalendar(document.forms[0].date, '${i18n.getMessage('format.date')}', this)"/>
			</td>
		</tr>
		<tr>
			<td class="name"><@required/>${i18n.getMessage('user')}:</td>
			<td>
				<select name="userId" style="width:204px">
					<option></option>
					<#list users as user>
						<option value="${(user.id)!}" <#if user == action.USER()>selected</#if>>${(user.fullName)!}</option>
					</#list>
				</select>
			</td>
		</tr>
		<tr>
			<td class="name" style="vertical-align:top">${i18n.getMessage('comment')}:</td>
			<td><textarea name="comment" style="width:350px;height:80px;"></textarea></td>
		</tr>
		<tr>
			<td class="name"></td>
			<td>
				<input type="submit" value="${i18n.getMessage('next')}" class="button_style"/> 
				<input type="reset" value="${i18n.getMessage('reset')}" class="button_style"/> 
			</td>
		</tr>
	</table>
</form>